﻿namespace Sustainalytics.Entities
{
    /// <summary>
    /// Filter data for filtering news.
    /// </summary>
    public class NewsFilter
    {
        /// <summary>
        /// Filter by category.
        /// </summary>
        public NewsCategory? Category { get; set; }

        /// <summary>
        /// Term used to search title and/or tags.
        /// </summary>
        public string Term { get; set; }

        /// <summary>
        /// Default is set to true, for Admin you must set it to false
        /// </summary>
        public bool IsPublished { get; set; }

        /// <summary>
        /// AvailableFor = Client, Prospect, All 
        /// </summary>
        public NewsAvailability AvailableFilter { get; set; }
    }
}
